﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TPCN.DAL
{
   public class PhuongThucThanhToanObj
    {
        private string _PhuongthucthanhtoanID;

        public string PhuongthucthanhtoanID
        {
            get { return _PhuongthucthanhtoanID; }
            set { _PhuongthucthanhtoanID = value; }
        }
        private string _TenPhuongthucthanhtoan;

        public string TenPhuongthucthanhtoan
        {
            get { return _TenPhuongthucthanhtoan; }
            set { _TenPhuongthucthanhtoan = value; }
        }

        private string _Bieutuong;

        public string Bieutuong
        {
            get { return _Bieutuong; }
            set { _Bieutuong = value; }
        }

        public PhuongThucThanhToanObj SetValuesFromDataReader(IDataReader reader)
        {
            PhuongThucThanhToanObj obj = new PhuongThucThanhToanObj();
            obj.PhuongthucthanhtoanID = (reader["PhuongthucthanhtoanID"] is DBNull) ? String.Empty : reader["PhuongthucthanhtoanID"].ToString();
            obj.TenPhuongthucthanhtoan = (reader["TenPhuongthucthanhtoan"] is DBNull) ? String.Empty : reader["TenPhuongthucthanhtoan"].ToString();
            obj.Bieutuong = (reader["Bieutuong"] is DBNull) ? String.Empty : reader["Bieutuong"].ToString();
            return obj;
        }
    }
}
